package util.listComparator;

import java.util.Comparator;
import entity.Home;

/**
 *Created by liuxiaobin on 2016/10/10.
 *根据Oraer的值来从小到大来排序
 */
public class HomeBotton implements Comparator<Home.BottomTabBarBean>{

    @Override
    public int compare(Home.BottomTabBarBean lhs, Home.BottomTabBarBean rhs) {

        if(lhs.getOrder() < rhs.getOrder()){
            return -1;
        }else {
            return 1;
        }
    }
}
